package model;

import java.util.Date;

/**
 * 消息实体类，用于系统内通信
 */
public class Message {
    private String id;              // 消息编号
    private String senderId;        // 发送者编号
    private String receiverId;      // 接收者编号
    private String content;         // 消息内容
    private Date sendTime;          // 发送时间
    private boolean isRead;         // 是否已读
    private String type;            // 消息类型（如：补货请求、补货确认等）
    
    // 构造方法
    public Message() {}
    
    // getter和setter方法
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getSenderId() {
        return senderId;
    }
    
    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }
    
    public String getReceiverId() {
        return receiverId;
    }
    
    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public Date getSendTime() {
        return sendTime;
    }
    
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
    
    public boolean isRead() {
        return isRead;
    }
    
    public void setRead(boolean isRead) {
        this.isRead = isRead;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
}
    